<?php
if (isset($_REQUEST['tab'])) {
        $tab = $_REQUEST['tab'];
    } else {
        $tab = 0;
    }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="keywords" content="carolinas rcoos, southeast observations, water temperature, salinity, wave, air temperature, ocean observing">
<meta name="description" content="Regional Coastal Ocean Observing System RCOOS">
<meta http-equiv="refresh" content="1800">
<title>RCOOS</title>
<link href="http://carolinasrcoos.org/styles/main.css" rel="stylesheet" type="text/css"></link>
<script language=javascript src=http://152.20.240.19/lib/ajax.js></script>
<script language=javascript src=http://152.20.240.19/lib/getUnit.js></script>
<script language=javascript src=http://152.20.240.19/lib/date-picker.js></script>

<!--
<link href="styles/rcoos.css" rel="stylesheet" type="text/css">
-->

<!-- Style sheet for the ExtJS library -->
<link href="./styles/ext-tree.css" rel="stylesheet" type="text/css"></link>

<link href="styles/home.css" rel="stylesheet" type="text/css"></link>
<link href="http://carolinasrcoos.org/styles/home.css" rel="stylesheet" type="text/css"></link>
</head>

<!-- Google Analytics traffic tracking script -->
<?php
$var_referer=$_SERVER['HTTP_REFERER']; //referer url

$http_user_agent=$_SERVER['HTTP_USER_AGENT'];
$http_user_agent=preg_replace('/\s+/','_',$http_user_agent); //replace spaces
$http_user_agent=preg_replace('/;/','_',$http_user_agent); //replace semicolons - problematic for javascript ?

$var_uservar='ip='.$_SERVER['REMOTE_ADDR'].'&agent='.$http_user_agent; //enter your own user defined variable
?>

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-3867608-4");
pageTracker._trackPageview();
pageTracker._setVar("<? echo $var_uservar ?>");
</script>

<!--
<body onload="loadMap();">
-->

<body>

  <div id="container">

  <div id="header">
    <a href="http://carolinasrcoos.org">
      <img src="images/rcoos_hdr.gif" alt="Carolinas RCOOS" />
    </a>
  </div>

  <div id="tabmenu">
  <?php
  switch ($tab)
  {
      case 1:     //About US
  ?>
        <ul id="menu">
            <li><a href="http://carolinasrcoos.org?tab=0">Home</a></li>
            <li class="selected"><a href="aboutus.php?tab=1">About Us</a></li>
            <li><a href="carolinasrcoos.html">Maps</a></li>
            <li><a href="DataServices.php?tab=5">Data</a></li>
            <li><a href="stationList.php?tab=3">Station List</a></li>
            <li><a href="DataLinks.html?tab=2">Links</a></li>
        </ul>

  <?php
      break;
      case 2:     // Links tab

  ?>
        <ul id="menu">
            <li><a href="http://carolinasrcoos.org?tab=0">Home</a></li>
            <li><a href="aboutus.php?tab=1">About Us</a></li>
            <li><a href="carolinasrcoos.html">Maps</a></li>
            <li><a href="DataServices.php?tab=5">Data</a></li>
            <li><a href="stationList.php?tab=3">Station List</a></li>
            <li class="selected"><a href="DataLinks.html?tab=2">Links</a></li>
        </ul>

  <?php
      break;
      case 3:     // Station List tab.

  ?>
        <ul id="menu">
            <li><a href="http://carolinasrcoos.org?tab=0">Home</a></li>
            <li><a href="aboutus.php?tab=1">About Us</a></li>
            <li><a href="carolinasrcoos.html">Maps</a></li>
            <li><a href="DataServices.php?tab=5">Data</a></li>
            <li class="selected"><a href="stationList.php?tab=3">Station List</a></li>
            <li><a href="DataLinks.html?tab=2">Links</a></li>
        </ul>
  <?php
      break;
      case 4:     // Maps tab.
  
  ?>    
        <ul id="menu">
            <li><a href="http://carolinasrcoos.org?tab=0">Home</a></li>
            <li><a href="aboutus.php?tab=1">About Us</a></li>
            <li class="selected"><a href="carolinasrcoos.html">Maps</a></li>
            <li><a href="DataServices.php?tab=5">Data</a></li>
            <li><a href="stationList.php?tab=3">Station List</a></li>
            <li><a href="DataLinks.html?tab=2">Links</a></li>
        </ul>
  <?php
      break;
      case 5:     // Data tab.

  ?>
        <ul id="menu">
            <li><a href="http://carolinasrcoos.org?tab=0">Home</a></li>
            <li><a href="aboutus.php?tab=1">About Us</a></li>
            <li><a href="carolinasrcoos.html">Maps</a></li>
            <li class="selected"><a href="DataServices.php?tab=5">Data</a></li>
            <li><a href="stationList.php?tab=3">Station List</a></li>
            <li><a href="DataLinks.html?tab=2">Links</a></li>
        </ul>
  <?php
      break;
      default:     //  Home tab
  ?>
        <ul id="menu">
            <li class="selected"><a href="http://carolinasrcoos.org?tab=0">Home</a></li>
            <li><a href="aboutus.php?tab=1">About Us</a></li>
            <li><a href="carolinasrcoos.html">Maps</a></li>
            <li><a href="DataServices.php?tab=5">Data</a></li>
            <li><a href="stationList.php?tab=3">Station List</a></li>
            <li><a href="DataLinks.html?tab=2">Links</a></li>
        </ul>

  <?php
    break;
  }
  ?>

</div>
